]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
scripting: Terminate using meta_context_terminate()
authorJonas Ådahl <jadahl@gmail.com>
Tue, 16 Aug 2022 10:47:55 +0000 (12:47 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 25 Nov 2022 21:09:37 +0000 (22:09 +0100)
With meta_exit() we bypass the tear down procedures, making the test
case excercising much less code paths. Use meta_context_terminate()
instead, as that exits the main loop and goes through proper shutdown.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>

js/ui/scripting.js

index 76a74d5e80bf558863064520e0f51ad6b69712fe..cbd6ecd6b0e2d4e75fad65fbaf694807087407c1 100644 (file)
@@ -293,7 +293,7 @@ async function _runPerfScript(scriptModule, outputFile) {
         Meta.exit(Meta.ExitCode.ERROR);
     }
 
-    Meta.exit(Meta.ExitCode.SUCCESS);
+    global.context.terminate();
 }
 
 /**